//
//  tklCAGradientLayer.h
//  boboBoom
//
//  Created by wxt on 2021/3/4.
//  Copyright © 2021 emiyajin. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

NS_ASSUME_NONNULL_BEGIN

@interface tklCAGradientLayer : CAGradientLayer
+(instancetype)layerWithFrame:(CGRect)frame;
                        
+(instancetype)layerWithFrame:(CGRect)frame
                         startPointx:(CGFloat )spointx
                   startPointy:(CGFloat)spointy
                         endPointx:(CGFloat)epointx
                     endPointy:(CGFloat)epointy
                  startColorR:(CGFloat )startColorR
                  startColorG:(CGFloat)startColorG
                  startColorB:(CGFloat)startColorB
              endColorR:(CGFloat)endColorR
                    endColorG:(CGFloat )endColorG
                    endColorB:(CGFloat)endColorB;
    
+(instancetype)layerWithFrame:(CGRect)frame
                  startColorR:(CGFloat )startColorR
                  startColorG:(CGFloat)startColorG
                  startColorB:(CGFloat)startColorB
              endColorR:(CGFloat)endColorR
                    endColorG:(CGFloat )endColorG
                    endColorB:(CGFloat)endColorB;


@end

NS_ASSUME_NONNULL_END
